:root {
    --themeTransparent: transparent;
    --blue: #00BCD4;
    --gray: gray;
    --red: red;
    --green: #37d715;
    --yellow: yellow;
    --motorImgWidth: 185px;
    --TBshadow: 0 2px 1px 0 #9C27B0, 0 4px 1px -1px #9C27B0, 0 6px 1px -2px #9C27B0, 0 8px 1px -3px #9C27B0, 0 10px 1px -4px #673AB7, 0 12px 1px -5px #673AB7, 0 14px 1px -6px #673AB7, 0 16px 1px -7px #673AB7, 0 18px 1px -8px #3F51B5, 0 20px 1px -9px #3F51B5, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 20px 4px -6px rgba(0, 0, 0, 0.9), 0 45px 5px -5px rgba(0, 0, 0, 0.05), 0 35px 10px -5px rgba(0, 0, 0, 0.1), 0 25px 55px 5px rgba(0, 0, 0, 0.15);
    --duration: 5s;
    --color: #2196F3;
}
.mainbody{
    height: calc(100% - 50px);
    position: absolute;
    top: 50px;
    padding: 0 15px;
}
.left-part {
    width: 300px;
    height: -moz-calc(100% - 20px);
    height: -webkit-calc(100% - 20px);
    height: calc(100% - 20px);
    float: left;
    text-align: center;
    position: relative;
}

.left-part .img-wrap {
    width: 250px;
    border-radius: 50%;
    padding: 30px;
    margin: 0 25px;
    /*background: url(../images/circle.png) no-repeat;*/
    /*background-size: 100% 100%;*/
    /*background-position: 0 0;*/
    box-sizing: border-box;
    box-shadow: inset 0 0 30px var(--blue);
}
.left-part .rotateBorder{
    position: absolute;
    width: var(--motorImgWidth);
    height: var(--motorImgWidth);
    border-radius: 50%;
    padding: 30px;
    margin: 0 25px;
    background: url("../images/circle.png") no-repeat;
    background-size: 100% 100%;
    background-position: 0 0;
    -webkit-animation: rotateBorder 15s linear infinite;
}
@-webkit-keyframes rotateBorder {
    0% {-webkit-transform: rotate(0deg);}
    25% {-webkit-transform: rotate(90deg);}
    50% {-webkit-transform: rotate(180deg);}
    75% {-webkit-transform: rotate(270deg);}
    100% {-webkit-transform: rotate(360deg);}
}
.left-part .img-wrap img {
    width: var(--motorImgWidth);
}

.alertList {
    margin-top: 15px;
    background: url("../images/box3.png") no-repeat;
    background-size: 100% 100%;
    background-position: 0 0;
    width: 100%;
    height: -moz-calc(100% - 265px);
    height: -webkit-calc(100% - 265px);
    height: calc(100% - 265px);
}

.alertList .title {
    text-shadow: 1px 1px 3px #333;
}

.alertList ul {
    padding: 15px;
}

.alertList ul li {
    font-size: 16px;
    padding: 0 15px;
    text-align: left;
    box-sizing: border-box;
    height: 55px;
    line-height: 55px;
    box-shadow: inset 0 0 8px var(--blue);
    border-bottom: 1px solid var(--blue);
}
.alertList li > div:hover{
    cursor: pointer;
}
.alertList li > label:hover{
    cursor: pointer;
}
.alertList li.current{
    background: linear-gradient(to bottom, rgba(33, 150, 243, .6), rgba(103, 58, 183, 0.6));
}
.alertList ul li > div{
    display: inline-block;
    height: 55px;
}
.alertList ul li img {
    height: 60%;
    margin-right: 10px;
    /*filter: drop-shadow(0 -8px 8px var(--gray));*/
}

.alarm-lights {
    display: inline-block;
    width: 31px;
    height: 26px;
    vertical-align: middle;
    background: url("../images/icons-sprite.png") no-repeat;
}

.gray-alarm {
    background-position: -161px 0;
}

.green-alarm {
    background-position: -96px 0;
}

.yellow-alarm {
    background-position: -64px 0;
}

.red-alarm {
    background-position: 0 0;
}

.blue-alarm {
    background-position: -129px 0;
}

.orange-alarm {
    background-position: -33px 0;
}

/**/
.layui-bg-gray{
    background-color: #9E9E9E!important;
    color: #666!important;
}
.right-part {
    height: -moz-calc(100% - 20px);
    height: -webkit-calc(100% - 20px);
    height: calc(100% - 20px);
    margin-left: 300px;
    background: url("../images/box2.png") top center no-repeat;
    background-size: 100% 100%;
    padding: 8px 15px 15px;
    box-sizing: border-box;
}
.right-part .legend{
    text-align: right;
    margin-top: 15px;
    margin-right: 15px;
}
.right-part p.h3 {
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 1px 1px 3px #333;
    padding: 0 20px;
    background: linear-gradient(120deg,transparent 5%,#00BCD4 5%,#00BCD4 60%,transparent 60%),linear-gradient(-120deg,transparent 3%,#00BCD4 3%,#00BCD4 50%,transparent 50%)
}

p.h3 .updTime {
    font-size: 14px;
    font-weight: 400;
    background-color: #00b0ff;
}

.main-table {
    width: 100%;
    height: calc(100% - 70px);
    /* margin: 0 auto; */
    overflow-x: scroll;
    /*perspective-origin: 80% -50%;*/
    /*-webkit-perspective: 1100px;*/
    /*perspective: 1100px;*/
    /*backface-visibility: hidden;*/
    /*-webkit-backface-visibility: hidden;*/
}

.main-table table {
    width: 95%;
    height: 70%;
    margin: 30px auto;
    color: #fff;
    /*!* border: 1px solid var(--themeTransparent); *!*/
    /*background-color: rgba(80, 55, 158, 0.2);*/
    /*transform-style: preserve-3d;*/
    /*backface-visibility: hidden;*/
    /*!*transform: translateZ(-180px) translateY(275px) translateX(0px) rotateX(105deg) rotateY(0deg) rotateZ(0deg);*!*/
    /*transform: translateZ(-350px) translateY(80%) translateX(-10%) rotateX(100deg) rotateY(0deg) rotateZ(0deg);*/
}
.layui-table tbody tr:hover{
    background-color: transparent;
}
.main-table .layui-icon-loading{
    font-size: 100px;
}
/*.main-table table tbody {*/
/*    transform: translateZ(180px) translateY(180px) translateX(0px) rotateX(-90deg) rotateY(0deg) rotateZ(0deg);*/
/*}*/

.sideTr {
    height: 0;
}

.main-table table img {
    width: 40px;
    display: block;
    margin: 5px auto;
    /*transform: translateZ(0px) translateY(6px) translateX(10px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);*/
    /*filter: drop-shadow(0 -8px 8px var(--gray));*/
}
table tr, table tr th, table tr td {
    padding: 5px;
    border: 0px solid var(--themeTransparent);
    background: linear-gradient(to top, #9c27b07a, transparent);
}
.mo-troughName.zou ,.mo-troughName.wei{
    height: 70px;
    max-height: 70px;
}
.mo-troughName th{
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 2px #333;
}
.layui-table td, .layui-table th{
    font-size: 16px;
}
.mo-moName {
    max-width: 70px;
}

tr.mo-troughImg th {
    height: 60px;
    background: url("../images/people.png") no-repeat;
    background-size: 100% 100%;
    opacity: .8;
}

tr.mo-troughImg td {
    height: 60px;
    background: url("../images/troughImg.png") no-repeat;
    background-size: 100% 100%;
    opacity: .8;
}

.mo-moName {
    text-align: center;
}

tr.motor-status th, tr.monitor-status th {
    width: 70px;
    max-width: 70px;
    height: 40px;
    min-height: 40px;
    box-shadow: var(--TBshadow);
}

tr.motor-status td, tr.monitor-status td {
    /*width: 58px;*/
    /*max-width: 58px;*/
    box-shadow: var(--TBshadow);
}

.motor-status td span.one-text {
    display: inline-block;
    width: 100%;
    /*width: 58px;*/
    /*max-width: 58px;*/
    text-align: center;
    /*transform: translateZ(0px) translateY(6px) translateX(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);*/
}

img.toExcep:hover, img.toReal:hover {
    cursor: pointer;
}

.mo-troughName.zou th {
    border-top: 2px solid var(--themeTransparent);
    box-shadow: var(--TBshadow);
}

.mo-troughName.wei th {
    border-bottom: 2px solid var(--themeTransparent);
    box-shadow: var(--TBshadow);
}

th.motorsidetype {
    border: 2px solid var(--themeTransparent);
    width: 15px;
    /*transform: translateZ(30px) translateY(53px) translateX(3px) rotateX(-90deg) rotateY(15deg) rotateZ(8deg);*/
}

tr.mo-troughImg {
    border: 2px solid var(--themeTransparent);
    border-right-width: 0;
}
/*loading*/
@keyframes rotate1 {
    25% {
        left: 0;
        transform: rotate(-135deg);
        opacity: 1;
    }
    25.01% {
        left: -.5em;
        opacity: 0;
    }
    50% {
        left: 0;
        opacity: 0;
    }
    50.01% {
        opacity: 1;
        transform: rotate(-135deg);
    }
    75% {
        left: 0;
        transform: rotate(-315deg);
    }
    100% {
        transform: rotate(-315deg);
    }
}
@keyframes rotate2 {
    25% {
        right: 0;
        transform: rotate(-135deg);
        opacity: 1;
    }
    25.01% {
        right: -.5em;
        opacity: 0;
    }
    50% {
        right: 0;
        opacity: 0;
    }
    50.01% {
        opacity: 1;
        transform: rotate(-135deg);
    }
    75% {
        right: 0;
        transform: rotate(-315deg);
    }
    100% {
        transform: rotate(-315deg);
    }
}
@keyframes container {
    25% {
        transform: translate(0, -50%);
        width: .5em;
    }
    50% {
        transform: translate(-100%, -50%);
        width: .5em;
    }
    75% {
        transform: translate(-50%, -50%);
        width: 1em;
    }
}
.loading-wrap{
    position: absolute;
    width: 200px;
    height: 200px;
    left: 50%;
    top: 20%;
}
.countdown {
    font-size: 12rem;
    width: 1em;
    height: 1em;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: container calc(var(--duration) * 2) steps(1) infinite;
    overflow: hidden;
}
.countdown::before , .countdown::after {
    display: block;
    content: '';
    box-sizing: border-box;
    border: .1em solid transparent;
    border-radius: 50%;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1em;
    transform: rotate(45deg);
    animation-timing-function: linear;
    animation-duration: calc(var(--duration) * 2);
    animation-iteration-count: infinite;
}
.countdown::before {
    border-color: transparent transparent var(--color) var(--color);
    animation-name: rotate1;
    left: 0;
}
.countdown::after {
    border-color: var(--color) var(--color) transparent transparent;
    animation-delay: calc(var(--duration) / 2);
    animation-name: rotate2;
    right: 0;
}
.second {
    width: 200px;
    height: 200px;
    line-height: 200px;
    text-align: center;
    font-size: 80px;
    position: absolute;
    pointer-events: none;
    text-shadow: 3px 3px 3px #050505;
}
/*保养开关样式*/
.switch {
    position: relative;
    display: inline-block;
    width: 57px;
    height: 24px;
}
.main-table .switch {
    left: 50%;
    transform: translateX(-50%);
}
.switch.line{
    top: 15px;
}
.switch input {display:none;}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(32px);
    -ms-transform: translateX(32px);
    transform: translateX(32px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.switch em{
    font-style: normal;
    position: absolute;
}
.switch.line em{
    top: -15px;
}
input + .slider + span .yes{
    left: 3px;
    color: #fff;
    opacity: 0;
}
input + .slider + span .not{
    color: #555;
    right: 3px;
    opacity: 1;
}
input:checked + .slider + span .yes{
    opacity: 1;
}
input:checked + .slider + span .not{
    opacity: 0;
}